package per.joywong.blogauth.response.exception;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;

import java.util.Map;

@JsonSerialize
@JsonDeserialize
@JsonIgnoreProperties({
        "suppressed",
        "oauth2ErrorCode",
        "message",
        "httpErrorCode",
        "additionalInformation",
        "summary",
        "localizedMessage",
        "cause",
        "stackTrace"
})
public class BlogOauth2Exception extends OAuth2Exception {

    public BlogOauth2Exception(String msg, Throwable t) {
        super(msg, t);
    }

    public BlogOauth2Exception(String msg) {
        super(msg);
    }

}
